|
|
|
| | | |
|
|
|
|
Figure 3.4
Text boxes on the Employee Information form. |
|
|
|
|  | Text boxes are the main user-interface tool that is used to gather user input. It is very important that you not only name each one individually, but that you also set the MaxLength to restrict the users input to a reasonable size. | | Examples Filename: Employee2.frm |
|
|
|
|
|
|
Common Text Box Properties |
|
|
|
|
|
|
|
|
Table 3.5 lists the properties changed most often for the text box control. |
|
|
|
|
| Table 3.5 Common Text Box Properties. | | Property | Description | | Enabled | When this property is set to True, the user may type text into the text box. When its set to False, the user will not be able to type text in the text box or move the cursor into the control. In addition, the control will be grayed. The gray color in Windows typically means a control is not available to be typed into, or clicked upon. | | Locked | When this property is set to True, the user may move the cursor into the control but will be unable to change any of the characters. This allows the user to view all the text by scrolling left and right. The text will not be grayed. |
|
|
|
|
|
|
(table continued on next page) |
|
|
|
|
|